<head>
    <jsp:directive.include file="/WEB-INF/jsp/prelude/include-head-meta.jspf" />
    <title>My Home Page</title>
    <style>
        .bd-placeholder-img {
            font-size: 1.125rem;
            text-anchor: middle;
            -webkit-user-select: none;
            -moz-user-select: none;
            -ms-user-select: none;
            user-select: none;
        }

        @media (min-width: 768px) {
            .bd-placeholder-img-lg {
                font-size: 3.5rem;
            }
        }
    </style>
</head>
<body>
<div class="container">
    <form class="form-signin"  id = "from1" method="post" action="/api/register">
        <h1 class="h3 mb-3 font-weight-normal">注册</h1>
        <label for="inputEmail" class="sr-only">姓名</label> <input
             id="name"  name="username" class="form-control"
            placeholder="请输入姓名" required autofocus>
        <label
                for="inputPassword" class="sr-only">输入</label> <input
            type="password" id="inputPassword"  name="pwd" class="form-control"
            placeholder="请输入密码" required>
        <label
                for="inputPassword" class="sr-only">重复输入</label> <input
            type="password" id="inputPassword2"  name="pwd2" class="form-control"
            placeholder="请输入重复密码" required>
        <label for="inputEmail" class="sr-only">电子邮件</label> <input
            type="email" id="inputEmail"  name="email" class="form-control"
            placeholder="请输入电子邮件" required autofocus>
        <label for="inputEmail" class="sr-only">手机号</label> <input
            type="mobile" id="mobile"  name="mobile" class="form-control"
            placeholder="请输入手机号" required autofocus>
        <button class="btn btn-lg btn-primary btn-block" type="submit" onclick="jqsubmit()">Sign
            in</button>
        <p class="mt-5 mb-3 text-muted">&copy; 2017-2021</p>
    </form>

</div>
</body>
<script>
    function jqsubmit(){
        $("#form1").submit();
    }
</script>

